#include <lvgl.h>
#include <WiFi.h>
#include <Preferences.h>
#include "../../common.h"

extern const lv_img_dsc_t hotspot_icon;

class Hotspot
{
  private:
  Event event;
  lv_obj_t *label_scr, *label_msg, *label_sym, *label_ssid;
  lv_style_t font_style;
  bool is_connected = false, is_connecting = false;
  String ssid = "HOLO-POKI";
  uint8_t num_sta = 0, tem_num_sta = 0;
  bool is_ap=false;
  

  void init_gui();
  void show_msg(String, String, String);
  void open_ap();
  void close_ap();
  
  public:
  Hotspot();
  ~Hotspot();
  Event main_process(Action);
};
